package com.maegul.data.dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceContextType;

import org.springframework.stereotype.Repository;

import com.maegul.data.dao.AbstractDAO;
import com.maegul.data.entities.CartItem;

@Repository(value = "cartItemDao")
public class CartItemDaoImpl extends AbstractDAO<CartItem> implements
		CartItemDao {

	@PersistenceContext(type = PersistenceContextType.EXTENDED)
	private EntityManager em;

	public EntityManager getEntityManager() {
		return em;
	}

	public Class<CartItem> getClazz() {
		return CartItem.class;
	}

}
